﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ServerItem.aspx.cs" Inherits="Manage_Cms_ServerItem" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
        <form id="form1" action="?act=<%=ActFlag %>" method="post" onsubmit="return validator(this)">
        <div class="columntitle">
            <%=ActName%>服务器</div>
        <table width="95%" align="center" cellpadding="3" cellspacing="3">
            <tr>
                <td align="left" width="100">
                    <img src="../pic/icons/help.gif" alt="唯一标识此服务器名的字符串" onclick="helpInf(this)" />
                    服务器名称：
                </td>
                <td align="left">
                    <input name="ServerName" type="text" value="<%=modelCmsServer.ServerName %>" valid="required"
                        errmsg="请输入服务器名称。" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="产品许可证" onclick="helpInf(this)" />
                    产品许可证：
                </td>
                <td align="left" class="tdselect">
                    <select name="LicenseID" id="LicenseID" style="border: 1px solid red; width: 162px;"
                        valid="required" errmsg="请选择产品许可证。">
                        <%=KeRui.BLL.Common.GetSelectList(modelCmsServer.LicenseID, bllCmsServer.GetSel(modelCmsServer.LicenseID))%>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="服务器URL" onclick="helpInf(this)" />
                    服务器URL：
                </td>
                <td align="left">
                    <input name="ServerUrl" type="text" value="<%=modelCmsServer.ServerUrl %>" valid="required"
                        errmsg="请输入服务器URL。" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="服务系统路径" onclick="helpInf(this)" />
                    服务系统路径：
                </td>
                <td align="left">
                    <input name="ServerDir" type="text" value="<%=modelCmsServer.ServerDir==null ? @"d:\iPortal\KeRui.Source":modelCmsServer.ServerDir %>"
                        valid="required" errmsg="服务系统路径。" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="通讯密钥" onclick="helpInf(this)" />
                    通讯密钥：
                </td>
                <td align="left">
                    <input name="ServerKey" type="text" value="<%=modelCmsServer.ServerKey %>" valid="required"
                        errmsg="通讯密钥。" />
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="是否启用" onclick="helpInf(this)" />
                    是否启用：
                </td>
                <td align="left" class="tdradio">
                    <input type="radio" name="IsUsing" <%=modelCmsServer.IsUsing==1?"checked":"" %> value="1" />
                    是
                    <input type="radio" name="IsUsing" <%=modelCmsServer.IsUsing==0?"checked":"" %> value="0" />
                    否
                </td>
            </tr>
            <tr>
                <td align="left">
                    <img src="../pic/icons/help.gif" alt="排序" onclick="helpInf(this)" />
                    排序：
                </td>
                <td align="left">
                    <input name="OrderID" type="text" value="<%=modelCmsServer.OrderID==0?bllCmsServer.GetMaxOrderID():modelCmsServer.OrderID %>"
                        valid="required|isInt" errmsg="排序不能为空。|排序应为一个整数。" />
                </td>
            </tr>
            <tr align="center">
                <td colspan="2" class="tdbutton">
                    <input type="submit" name="sub" value="<%=ActName%>" />
                    <input type="button" name="Cancel" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');"
                        class="button" />
                    <input type="hidden" name="ServerID" value="<%=modelCmsServer.ServerID %>" />
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
